import request from '@/utils/request'
const getNavListAPI = () => {
  return request({
    method: 'GET',
    url: '/home/category/head'
  })
}
const findBrandAPI = (limit = 6) => {
  return request({
    method: 'get',
    url: '/home/brand',
    data: { limit }
  })
}
const getBannerAPI = () => {
  return request({
    method: 'get',
    url: '/home/banner'
  })
}
const getNewGoodsAPI = () => {
  return request({
    method: 'get',
    url: 'home/new'
  })
}
// 人气推荐
const getHotGoodsAPI = () => {
  return request({
    method: 'get',
    url: 'home/hot'
  })
}
const getGoodsAPI = () => {
  return request({
    method: 'get',
    url: 'home/goods'
  })
}
// 获取最新专题
const getSpecialAPI = () => {
  return request({
    method: 'get',
    url: 'home/special'
  })
}
export { getNavListAPI, findBrandAPI, getBannerAPI, getNewGoodsAPI, getHotGoodsAPI, getGoodsAPI, getSpecialAPI }
